package com.yjzx.care.base;

import java.util.function.BooleanSupplier;

/**
 * @author yjzx
 * @description Element
 * @since 2025/6/19
 */
public interface Element<V> {
    V getValue();

    static <V> Element<V> of(BooleanSupplier supplier, V value) {
        return new LambdaElement<>(supplier,value);
    }
    static <V> Element<V> of(boolean supplier, V value) {
        return new ValueElement<>(supplier,value);
    }
}
